/*
 * Copyright (c) 2006, 2021, webrx.cn All rights reserved.
 *
 */
package cn.webrx.ex;

/**
 * <p>Project: javaseapp - Ex100
 * <p>Powered by webrx On 2021-07-30 17:23:22
 * <p>Created by IntelliJ IDEA
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 16
 */
public class ExLing {
    public static void main(String[] args) {
        int max = 18;
        int spa = max;
        for (int i = 1; i < max; i += 2) System.out.printf("%s%s%n", " ".repeat(--spa), "*".repeat(i));
        for (int i = max - 3; i >= 1; i -= 2) System.out.printf("%s%s%n", " ".repeat(++spa), "*".repeat(i));
    }
}
